//=============================================================================
// ChainsawAltFire
//=============================================================================
// Power slash chainsaw fire class
//=============================================================================
// Killing Floor Source
// Copyright (C) 2009 Tripwire Interactive LLC
// - John "Ramm-Jaeger" Gibson
//=============================================================================
class ChainsawWAltFire extends SRKFMeleeFire;

var()	array<name>				FireAnims;
var		sound   				FireEndSound;				// The sound to play at the end of firing

simulated event ModeDoFire()
{
	local int AnimToPlay;

	if(FireAnims.length > 0)
	{
		AnimToPlay = rand(FireAnims.length);
		FireAnim = FireAnims[AnimToPlay];
	}
	Super.ModeDoFire();
}

simulated Function Timer()
{
	Super.Timer();
	Weapon.PlayOwnedSound(FireEndSound,SLOT_Interact,TransientSoundVolume,,TransientSoundRadius,,false);
}

defaultproperties
{
     FireAnims(0)="Fire2"
     FireAnims(1)="fire3"
     FireEndSound=SoundGroup'KF_ChainsawSnd.Chainsaw_RevLong_End'
     MeleeDamage=270
     DamagedelayMin=0.650000
     DamagedelayMax=0.650000
     hitDamageClass=Class'PerksSimHostOrg.DamTypeChainsawW'
     HitEffectClass=Class'KFMod.ChainsawHitEffect'
     TransientSoundVolume=1.800000
     FireAnim="Fire2"
     FireSound=SoundGroup'KF_ChainsawSnd.Chainsaw_RevLong_Start'
     FireRate=1.100000
     BotRefireRate=0.800000
}
